package com.payment.web.controller.app;

import com.payment.common.base.AjaxResult;
import com.payment.system.service.IApplyBankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author fuzhili
 * @Description: 办卡，贷款   处理信息
 * @date 2019/1/21 10:01
 */
@Controller
@RequestMapping("/app/applyBank")
public class ApplyBankController {
    @Autowired
    private IApplyBankService applyBankService;

    /**
     * 获取办卡
     * @param type 10A办卡，10B贷款
     * @return
     */
    @PostMapping("/list")
    @ResponseBody
    public AjaxResult bankList(String type) {
        return applyBankService.selectApplyBankByType(type);
    }
}
